package dc;

import java.util.ArrayList;
import java.util.List;

public class Proposal {

	private List<DCB> items = new ArrayList<DCB>();

	public void addItem(DCB item) {
		if (item != null) {
			for (DCB i : items) {
				if (i.match(item)) {
					i.setMultiple(i.getMultiple() + item.getMultiple());
					return;
				}
			}
			this.items.add(item);
		}
	}

	public List<DCB> getItems() {
		return items;
	}

	public void setItems(List<DCB> items) {
		this.items = items;
	}

}
